package com.blb.service.impl;

import com.blb.entity.InventoryCheck;
import com.blb.mapper.InventoryCheckMapper;
import com.blb.service.IInventoryCheckService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class InventoryCheckServiceImpl implements IInventoryCheckService {
    @Resource
    private InventoryCheckMapper inventoryCheckMapper;


    @Override
    public List<InventoryCheck> select(String pNumber, String pName,int start,int length,String companyId,String nodeId,String nodeType) {
        return inventoryCheckMapper.select(pNumber,pName,start,length,companyId,nodeId,nodeType);
    }

    @Override
    public int count(String pNumber, String pName) {
        return inventoryCheckMapper.count(pNumber,pName);
    }

    @Override
    public List<InventoryCheck> findAllWare(String companyId) {
        return inventoryCheckMapper.findAllWare(companyId);
    }

    @Override
    public InventoryCheck showDetails(int batch) {
        return inventoryCheckMapper.showDetails(batch);
    }
}
